package com.sys.data;

public enum code {
  OK(200, "成功"),
  ErrorParam(304, "请求数据错误"),
  NotLogin(300, "没有登录"),
  SQLSelectNull(301, "没有查询到所需数据"),
  ErrorEnctype(310, "上传图片的表单中没有定义类型Enctype"),
  ErrorUploadPic(311, "上传图片失败，原因可能有1.文件夹创建失败 2.文件不是图片类型 3.服务器空间已满 请联系管理员"),
  ErrorAccountRepetition(312, "注册账户名重复"),
  ErrorAccountOrPassword(313, "登录失败,账号或密码不正确"),
  ErrorDepartmentNameRepetition(314, "创建失败,部门名称重复"),
  GetSupplierNULL(315, "暂无供应商数据"),
  ErrorWarehouseRepetition(316, "仓库名重复"),
  ErrorSupplierRepetition(317, "供应商名重复"),
  GetWarehouseNULL(318, "暂无仓库数据"),
  GetDepartmentNULL(324, "暂无部门数据"),
  GetUserNULL(319, "暂无用户数据"),
  ErrorOldPassword(320, "旧密码填写错误"),
  ErrorItemNameRepetition(321, "在该仓库已有此物资"),
  ErrorInWarehouseGet(322, "入库仓库获取失败"),
  ErrorInWarehouseGetSupplier(323, "入库供应商获取失败"),
  ErrorUserNotFound(324, "用户未找到"),
  GetItemNULL(325, "暂无物品数据"),
  GetOutWarehouseNULL(326, "未查询到出库仓库"),
  GetOutDepartmentTargetNULL(327, "未查询到目标部门"),
  GetOutItemNULL(328, "未查询到出库物品"),
  ItemCountNoEnough(329, "物品数量不足"),
  GetOutWarehouseHistoryNULL(330, "暂无出库记录"),
  GetDiskNULL(330, "暂无盘损记录"),
  ErrorUpdate(500, "数据库更新失败"),
  ErrorInsert(501, "数据库插入失败"),
  ErrorSelect(502, "数据库查询失败");
  private int _value;
  private String _msg;

  code(int value, String msg) {
    this._value = value;
    this._msg = msg;
  }

  public int value() {
    return _value;
  }

  @SuppressWarnings("unused")
  public String msg() {
    return _msg;
  }
}
